﻿
function Parent() {
}

Parent.prototype.main = function() {

  var a = a;
  this.addHandler(this.TextBox1, "click", this.click);

}

Parent.prototype.click = function()
{

  var a = a;
  alert("The value is: " + this.TextBox1.value);

}

if (typeof (Sys) != "undefined" && typeof (Sys.Application) != "undefined") {
    Sys.Application.notifyScriptLoaded();
}